package cn.roadtrip.mtravelbusinessmodule.dao.bs;

import cn.roadtrip.mtravelbusinessmodule.dao.bs.vpo.PortalProductItem;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface PortalProductMapper {
    int countPortalProductNum(
            @Param("tenantId") Long tenantId,
            @Param("category") String category,
            @Param("expireTime") Date expireTime
    );

    java.util.List<PortalProductItem> queryPortalProductList(
            @Param("tenantId") Long tenantId,
            @Param("category") String category,
            @Param("expireTime") Date expireTime,
            @Param("cpage") Integer cpage,
            @Param("pagesize") Integer pagesize

    );

    PortalProductItem getProductById(@Param("productId") String productId);
}
